<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.lbi.helpers.core.StringFormatting</title><script src="../../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../../index-files";
//--></script><link href="../../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.lbi.helpers.core" rel="up"/><link href="../../../../com/lbi/helpers/view/ColourHelper.html" title="Class com.lbi.helpers.view.ColourHelper" rel="prev"/><link href="../../../../com/lbi/helpers/core/DateTimeHelper.html" title="Class com.lbi.helpers.core.DateTimeHelper" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.lbi.helpers.core.StringFormatting</h1><div class="type_hierachy"><ul><li><strong>com.lbi.helpers.core.StringFormatting</strong></li></ul></div><div class="type_description"><h2>Description</h2><p>
 	LBi Useful ActionScript 2 Library
    Copyright (C) 2007 LBi / Michael Forrest

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
</p></div><div class="type_indexes"><div class="method_index"><h2>Method Index</h2><a href="#camelize" title="static public function camelize($s:String):String">camelize()</a>, <a href="#collectionize" title="static public function collectionize(class_name:String):String">collectionize()</a>, <a href="#formatTimeInCentiseconds" title="static public function formatTimeInCentiseconds(t:Number):String">formatTimeInCentiseconds()</a>, <a href="#formatTimeInSeconds" title="static public function formatTimeInSeconds(t:Number):String">formatTimeInSeconds()</a>, <a href="#leftTrim" title="static public function leftTrim(string:String):String">leftTrim()</a>, <a href="#leftTrimForChar" title="static public function leftTrimForChar(string:String, char:String):String">leftTrimForChar()</a>, <a href="#leftTrimForChars" title="static public function leftTrimForChars(string:String, chars:String):String">leftTrimForChars()</a>, <a href="#pascalize" title="static public function pascalize(underscore_separated:String):String">pascalize()</a>, <a href="#rightTrim" title="static public function rightTrim(string:String):String">rightTrim()</a>, <a href="#rightTrimForChar" title="static public function rightTrimForChar(string:String, char:String):String">rightTrimForChar()</a>, <a href="#rightTrimForChars" title="static public function rightTrimForChars(string:String, chars:String):String">rightTrimForChars()</a>, <a href="#stripInLines" title="static public function stripInLines(s:String):Array">stripInLines()</a>, <a href="#trim" title="static public function trim(string:String):String">trim()</a>, <a href="#underscore" title="static public function underscore(string:String):String">underscore()</a>, <a href="#variablify" title="static public function variablify(string:String):String">variablify()</a></div></div><div class="type_details"><div class="method_detail_list"><h2>Method Detail</h2><div class="method_details alt_row"><a name="formatTimeInCentiseconds"></a><h3>formatTimeInCentiseconds</h3><code class="method_synopsis">static public function <strong class="method_name">formatTimeInCentiseconds</strong>(t:<span class="unresolved_type_name">Number</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details"><a name="formatTimeInSeconds"></a><h3>formatTimeInSeconds</h3><code class="method_synopsis">static public function <strong class="method_name">formatTimeInSeconds</strong>(t:<span class="unresolved_type_name">Number</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="camelize"></a><h3>camelize</h3><code class="method_synopsis">static public function <strong class="method_name">camelize</strong>($s:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"><p>
 converts string from underscore_lower_case to camelCase
 Utterly untested.
	 </p></div></div><div class="method_details"><a name="variablify"></a><h3>variablify</h3><code class="method_synopsis">static public function <strong class="method_name">variablify</strong>(string:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"><p>
 converts any string into a valid variable name
 See tests [aslibs_framafabTest ->StringFormattingTest] for behaviour expectations
	 </p></div></div><div class="method_details alt_row"><a name="pascalize"></a><h3>pascalize</h3><code class="method_synopsis">static public function <strong class="method_name">pascalize</strong>(underscore_separated:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"><p>
 ThisIsPascalCase
	 </p></div></div><div class="method_details"><a name="underscore"></a><h3>underscore</h3><code class="method_synopsis">static public function <strong class="method_name">underscore</strong>(string:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="trim"></a><h3>trim</h3><code class="method_synopsis">static public function <strong class="method_name">trim</strong>(string:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"><p>
 Trim functions from as2lib
	 </p></div></div><div class="method_details"><a name="leftTrim"></a><h3>leftTrim</h3><code class="method_synopsis">static public function <strong class="method_name">leftTrim</strong>(string:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="rightTrim"></a><h3>rightTrim</h3><code class="method_synopsis">static public function <strong class="method_name">rightTrim</strong>(string:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details"><a name="leftTrimForChars"></a><h3>leftTrimForChars</h3><code class="method_synopsis">static public function <strong class="method_name">leftTrimForChars</strong>(string:<span class="unresolved_type_name">String</span>, chars:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="rightTrimForChars"></a><h3>rightTrimForChars</h3><code class="method_synopsis">static public function <strong class="method_name">rightTrimForChars</strong>(string:<span class="unresolved_type_name">String</span>, chars:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details"><a name="leftTrimForChar"></a><h3>leftTrimForChar</h3><code class="method_synopsis">static public function <strong class="method_name">leftTrimForChar</strong>(string:<span class="unresolved_type_name">String</span>, char:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="rightTrimForChar"></a><h3>rightTrimForChar</h3><code class="method_synopsis">static public function <strong class="method_name">rightTrimForChar</strong>(string:<span class="unresolved_type_name">String</span>, char:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div><div class="method_details"><a name="stripInLines"></a><h3>stripInLines</h3><code class="method_synopsis">static public function <strong class="method_name">stripInLines</strong>(s:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">Array</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="collectionize"></a><h3>collectionize</h3><code class="method_synopsis">static public function <strong class="method_name">collectionize</strong>(class_name:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">String</span></code><div class="method_info"></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../../overview-summary.html" title="Overview of API" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.lbi.helpers.core" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="../../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>